import {defineStore} from 'pinia'

const commonStore = defineStore('common', {
    state: () => {
        return {
            socketMsg: {},
        }
    },
    actions: {
        setSocketMsg(data: object) {
            this.socketMsg = data
        }
    },
    persist: {
        enabled: true,
    }
})

export default commonStore
